package com.gali.juc;

/**
 * @Auther: gali
 * @Date: 2022-08-26 16:27
 * @Description:
 */
public class LockBigDemo {
    static Object object = new Object();
    public static void main(String[] args) {
            new Thread(()->{
                synchronized (object){
                    System.out.println("11111");
                }
                synchronized (object){
                    System.out.println("2222");
                }
                synchronized (object){
                    System.out.println("33333");
                }
                synchronized (object){
                    System.out.println("44444");
                }
            },"a").start();
    }
}
